Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sink: avoid memory allocations for transforming ColumnData to Column #11595

Merged
merged 17 commits into from
Sep 25, 2024

Conversation

hicqu
Copy link
Contributor

@hicqu hicqu commented Sep 13, 2024

What problem does this PR solve?

Issue Number: close #11590

What is changed and how it works?

Avoid to alloc temp objects for ColumnData.

Check List

Tests

  • Unit test

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

None

Signed-off-by: qupeng <[email protected]>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-triage-completed release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 13, 2024
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 13, 2024
@hicqu
Copy link
Contributor Author

hicqu commented Sep 13, 2024

/rebuild

Copy link
Collaborator

@lidezhu lidezhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

ti-chi-bot bot commented Sep 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asddongmen, lidezhu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 13, 2024
Copy link
Contributor

ti-chi-bot bot commented Sep 13, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-13 03:52:42.488661851 +0000 UTC m=+587632.229085836: ☑️ agreed by asddongmen.
  • 2024-09-13 03:59:04.794684548 +0000 UTC m=+588014.535108488: ☑️ agreed by lidezhu.

Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 13, 2024
@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 24, 2024
@ti-chi-bot ti-chi-bot bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 24, 2024
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Signed-off-by: qupeng <[email protected]>
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 48.91041% with 211 lines in your changes missing coverage. Please review.

Project coverage is 57.3928%. Comparing base (93f6ab6) to head (c0fcb0c).
Report is 1 commits behind head on master.

Additional details and impacted files
Components Coverage Δ
cdc 61.0402% <48.9104%> (-0.1183%) ⬇️
dm 51.0342% <ø> (-0.0343%) ⬇️
engine 63.4161% <ø> (-0.0071%) ⬇️
Flag Coverage Δ
unit 57.3928% <48.9104%> (-0.0670%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@@               Coverage Diff                @@
##             master     #11595        +/-   ##
================================================
- Coverage   57.4598%   57.3928%   -0.0670%     
================================================
  Files           852        852                
  Lines        126638     126845       +207     
================================================
+ Hits          72766      72800        +34     
- Misses        48479      48645       +166     
- Partials       5393       5400         +7     

@hicqu
Copy link
Contributor Author

hicqu commented Sep 25, 2024

/retest

@ti-chi-bot ti-chi-bot bot merged commit 4e177d9 into pingcap:master Sep 25, 2024
29 checks passed
@hicqu hicqu deleted the improve-column branch September 26, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

columnData2Column utilizes too much CPU in a single point component
3 participants